package cn.tx.api.config;

import cn.tx.order.feign.fallback.OrderClientFallBack;
import cn.tx.user.feign.fallback.UserClientFallBack;
import feign.Logger;
import org.springframework.context.annotation.Bean;

public class DefaultFeignConfiguration {
    @Bean
    public Logger.Level logLevel(){
        return Logger.Level.BASIC;
    }
    @Bean
    public UserClientFallBack userClientFallBack(){
        return new UserClientFallBack();
    }
    @Bean
    public OrderClientFallBack orderClientFallBack(){
        return new OrderClientFallBack();
    }
}
